<?php

/**
 * 2017年6月6日11:33:36
 * USE PDO REWRITE
 */

include 'common.php';

$dbc = pdo_root_connect();

$stmt = $dbc->prepare('select * from checknew order by buildtime desc limit 5');
$stmt->execute();

while($row = $stmt->fetch()){
	echo json_encode(array(
			'errorcode'=>1,
			'vername'=>$row['vname'],
			'vercode'=>$row['vcode'],
			'buildtime'=>$row['buildtime'],
			'description'=>$row['vdesc'],
			'fileurl'=>$row['url']));
	
}
?>